package com.sh.business.domain.form;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author dongGe_zzz
 * @date 2025-02-10 16:26
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TransferBo extends PasswordBo implements Serializable {

    /**
     * 转入地址
     */
    @NotBlank(message = "walletAddress can not be empty")
    private String walletAddress;

    /**
     * 转账金额
     */
    @NotNull(message = "amount can not be empty")
    @DecimalMin(value = "1", message = "amount must be greater than 1")
    private BigDecimal amount;
}
